package twentytwenty;

/**
 * @Author: Zahi
 * @Description:
 * @Date Created in 2020-12-05 14:45
 * @Modified By:
 */
public class TrailingZeroes_172 {
    public static void main(String [] args){
        System.out.println(trailingZeroes(10));
    }

    public static int trailingZeroes(int n) {
        int result = 0;
        while(n > 0){
            result += n / 5;
            n /= 5;
        }
        return result;
    }
}
